package com.yoj.serviceclient.service.user.fallback;

import com.yoj.model.entity.User;
import com.yoj.serviceclient.service.user.UserFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.Collection;
import java.util.List;

@Slf4j
@Component
public class UserFeignClientFallback implements UserFeignClient {
    @Override
    public User getUserById(long userId) {
        log.error("getUserById 查询失败，参数：{}", userId);
        return new User();
    }

    @Override
    public List<User> listUserByIds(Collection<Long> idList) {
        log.error("listUserByIds 查询失败，参数：{}", idList);
        return null;
    }
}
